package com.zte.claa.inficombo.csa.app.service.gprscat1.bean;

public class GPRSMessage {
	public static final short GPRSCAT1_ERR_NO_REASON    = 0x00;
	public static final short GPRSCAT1_ERR_DEVNOTEXIST  = 0x01;	
	public static final short GPRSCAT1_ERR_AUTHFAIL     = 0x02;
	public static final short GPRSCAT1_ERR_MULTICONN    = 0x03;
	public static final short GPRSCAT1_ERR_CRCCHECK     = 0x04;
	private GPRSMsgHead head;
	private GPRSMsgBody body;
	private int errtype;
	
	public GPRSMessage(){
		
	}

	public int getErrtype() {
		return errtype;
	}

	public void setErrtype(int errtype) {
		this.errtype = errtype;
	}

	public GPRSMsgHead getHead() {
		return head;
	}

	public void setHead(GPRSMsgHead head) {
		this.head = head;
	}

	public GPRSMsgBody getBody() {
		return body;
	}

	public void setBody(GPRSMsgBody body) {
		this.body = body;
	}
	
	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("head: ").append(this.head).append("\n");
		sb.append("body: ").append(this.body).append("\n");
		sb.append("errtype: ").append(this.errtype);
		return sb.toString();
	}
}
